﻿<%@ Page Title="Windows Azure Search" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="WebRole1.Result" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
    
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <div id="Top" class="top">
        <div class="logoSmallImageDiv">
            <asp:Image ID="LogoImage" CssClass="logoSmallImage" AlternateText="logo" ImageUrl="~/Image/logo-small.jpg" runat="server">
            </asp:Image>
        </div>
        <div class="searchResultFormDiv">
                <asp:TextBox ID="SearchText" runat="server" CssClass="searchResultText"></asp:TextBox>
                <asp:Button ID="SearchButton" runat="server" OnClick="Search"
                    CssClass="searchButton" Text="Search">
                </asp:Button>
        </div>
    </div>

    <div id="Content" class="content">
        <div id="LeftContent" class="leftContent">
            <div class="highLevel">
                <%--<h2>Advanced Search</h2>--%>
                <asp:Button ID="IndexButton" runat="server" OnClick="ConstructIndex" Text="Construct Index" />
                <%--<asp:Button ID="UploadButton" runat="server" OnClick="UploadFiles" Text="Upload Files" />--%>
            </div>
        </div>
        <div id="RightContent" class="rightContent">
            <asp:Repeater ID="gridBlob" runat="server">
                <ItemTemplate>
                    <a class="heading" href="<%# Eval("url") %>" target="_blank"><%# Eval("name") %></a><br />
                    <span class="url"><%# Eval("url") %></span><br />
                    <%# Eval("content") %><br /><br />
                </ItemTemplate>
            </asp:Repeater>
            <webdiyer:aspnetpager id="AspNetPager1"
               runat="server"
               PageSize="10"
               NumericButtonCount="20"
               PagingButtonSpacing="10"
               PrevPageText="Prev"
               NextPageText="Next"
               ShowFirstLast="false"
               AlwaysShow="false"
               CustomInfoHTML=""
               OnPageChanged="PageChanged"/>
            <p>
                <asp:Label ID="pagelabel" runat="server"></asp:Label>
            </p>
        </div>
    </div>

    <div id="bottom">
        <p>
        <asp:Label ID="testlabel" runat="server"></asp:Label>
        </p>
    </div>

    <div id="footer">
    </div>

</asp:Content>
